#ifndef TIMER_WIDGET_H
#define TIMER_WIDGET_H

#include <QLabel>
#include <QWidget>
#include <QTimer>

class TimerWidget : public QWidget
{
    Q_OBJECT
public:
    explicit TimerWidget(QWidget *parent = nullptr);

signals:

private slots:
    // 开始按钮
    void onStartClicked();

    // 停止按钮
    void onStopClicked();

    // 重置按钮
    void onResetClicked();

    void onTimeout1();

    void onTimeout2();

private:
    QLabel* label1;
    QLabel* label2;

    int id1;
    int id2;

    QTimer* timer1;
    QTimer* timer2;

protected:
    void timerEvent(QTimerEvent* event) override;
};

#endif // TIMER_WIDGET_H
